Package com.fsf.news
Class FileTestUtils
java.lang.Object
com.fsf.news.FileTestUtils
Utility class for loading test resources from the classpath.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic InputStreamloadResource(String resource) Loads a resource file from the classpath as an input stream.
-
Constructor Details
-
FileTestUtils
public FileTestUtils()
-
-
Method Details
-
loadResource
Loads a resource file from the classpath as an input stream.- Parameters:
resource- The name of the resource file to load- Returns:
- An input stream of the requested resource
-